/*******************************************************************************
 * Copyright (c) 2012, 2013 XML-Print Project.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     XML-Print Project - initial API and implementation
 ******************************************************************************/
package info.xmlprint.core.referencesystem;

import java.io.Serializable;

import info.xmlprint.util.FileUtil;
import info.xmlprint.util.XmlUtil;

public class ReferencingSystemGroup extends AbstractBaseGroup implements
		Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4308417593622974197L;

//	private ReferenceFieldGroup referenceFieldGroup;

//	public void setReferenceFieldGroup(ReferenceFieldGroup referenceFieldGroup) {
//		this.referenceFieldGroup = referenceFieldGroup;
//	}

//		public ReferenceFieldGroup getReferenceFieldGroup() {
//		return referenceFieldGroup;
	//	}

	@Override
	public void setRootElementName() {
		rootElementName = "referencingSystems";//$NON-NLS-1$
		typeElementName = "referencingSystem";//$NON-NLS-1$
	}

	// Test
	public static void main(String args[]) {
		ReferencingSystemGroup group = new ReferencingSystemGroup();
		for (int i = 0; i < 20; i++) {
			ReferencingSystem rf = new ReferencingSystem();
			rf.setValueOf("name", "f" + i);//$NON-NLS-1$
			group.add(rf);
		}

		XmlUtil.save2file(group.getDoc(), "d:/refGroupTest.xml");//$NON-NLS-1$
	}

	public ReferencingSystemGroup objClone() {
		ReferencingSystemGroup clone = (ReferencingSystemGroup) FileUtil
				.objClone(this);
		return clone;
	}

}
